package com.headcaselabs.s3;


/**
 * 
 * This class represents a FinishedJobReport for a LobAccess add type comment.
 * 
 * @author flo
 * @version $Revision: 1 $
 */
public class Report {
	private boolean											success				= false;

	private String											date					= "";

	private String											uri						= "";

	private String											objectName		= "";

	private String											contentSize		= "";

	private String											encoding			= "";

	private String											exception			= "";

	private String											metaData			= "";

	private boolean											uriExists			= false;

	private boolean											objectExists	= false;

	private String											transferTime	= "";

	private String											messageStack	= "";

	private int													statusCode		= -1;


	/**
	 * @return the statusCode.
	 */
	public int getStatusCode() {
		return statusCode;
	}

	/**
	 * @param statusCode
	 *          The statusCode to set.
	 */
	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	/**
	 * @return the contentSize.
	 */
	public String getContentSize() {
		return contentSize;
	}

	/**
	 * @param contentSize
	 *          The contentSize to set.
	 */
	public void setContentSize(String contentSize) {
		this.contentSize = contentSize;
	}

	/**
	 * @return the date.
	 */
	public String getDate() {
		return date;
	}

	/**
	 * @param date
	 *          The date to set.
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * @return the encoding.
	 */
	public String getEncoding() {
		return encoding;
	}

	/**
	 * @param encoding
	 *          The encoding to set.
	 */
	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	/**
	 * @return the exception.
	 */
	public String getException() {
		return exception;
	}

	/**
	 * @param exception
	 *          The exception to set.
	 */
	public void setException(String exception) {
		this.exception = exception;
	}

	/**
	 * @return the messageStack.
	 */
	public String getMessageStack() {
		return messageStack;
	}

	/**
	 * @param messageStack
	 *          The messageStack to set.
	 */
	public void setMessageStack(String messageStack) {
		this.messageStack = messageStack;
	}

	/**
	 * @return the metaData.
	 */
	public String getMetaData() {
		return metaData;
	}

	/**
	 * @param metaData
	 *          The metaData to set.
	 */
	public void setMetaData(String metaData) {
		this.metaData = metaData;
	}

	/**
	 * @return the objectExists.
	 */
	public boolean isObjectExists() {
		return objectExists;
	}

	/**
	 * @param objectExists
	 *          The objectExists to set.
	 */
	public void setObjectExists(boolean objectExists) {
		this.objectExists = objectExists;
	}

	/**
	 * @return the objectName.
	 */
	public String getObjectName() {
		return objectName;
	}

	/**
	 * @param objectName
	 *          The objectName to set.
	 */
	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}

	/**
	 * @return the success.
	 */
	public boolean isSuccess() {
		return success;
	}

	/**
	 * @param success
	 *          The success to set.
	 */
	public void setSuccess(boolean success) {
		this.success = success;
	}

	/**
	 * @return the transferTime.
	 */
	public String getTransferTime() {
		return transferTime;
	}

	/**
	 * @param transferTime
	 *          The transferTime to set.
	 */
	public void setTransferTime(String transferTime) {
		this.transferTime = transferTime;
	}

	/**
	 * @return the uri.
	 */
	public String getUri() {
		return uri;
	}

	/**
	 * @param uri
	 *          The uri to set.
	 */
	public void setUri(String uri) {
		this.uri = uri;
	}

	/**
	 * @return the uriExists.
	 */
	public boolean isUriExists() {
		return uriExists;
	}

	/**
	 * @param uriExists
	 *          The uriExists to set.
	 */
	public void setUriExists(boolean uriExists) {
		this.uriExists = uriExists;
	}
	

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("Status Code:");
		sb.append(statusCode);
		sb.append("\nObject Name:");
		sb.append(objectName);
		sb.append("\nUri:");
		sb.append(uri);
		sb.append("\nContent Size:");
		sb.append(contentSize);
		sb.append("\nDate:");
		sb.append(date);
		sb.append("\nTransfer Successful:");
		sb.append(success);
		sb.append("\nEncoding:");
		sb.append(encoding);
		sb.append("\nException:");
		sb.append(exception);
		sb.append("\nMeta Data:");
		sb.append(metaData);
		sb.append("\nTransfer Time:");
		sb.append(transferTime);
		sb.append("\nExisting Object:");
		sb.append(objectExists);
		sb.append("\nExisting Uri:");
		sb.append(uriExists);
		sb.append("\nMessage Stack:");
		sb.append(messageStack);
		return sb.toString();
	}



}
